
for id in $(seq -w 1 20)
do
anat=$(find /ibmgpfs/cuizaixu_lab/lizhilin/tPBM_5/data/fmriprep/sub-0${id}/ -name "sub-0${id}*_desc-preproc_T1w.nii.gz" ! -name "*space-*")
output=/ibmgpfs/cuizaixu_lab/lizhilin/tPBM_5/data/anat/sub-0${id}/
rm -r $output
mkdir -p $output
cp $anat $output/T1.nii.gz
echo "copy sub-0${id} anat is done"
done


